﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="GoodsTravelDaysEdit.aspx.cs" Inherits="NetDon.OA.Portal.Admin.GoodsTravelDaysEdit" %>

<%@ Register Src="../Controls/RequiredMark.ascx" TagName="RequiredMark" TagPrefix="uc1" %>
<%@ Register TagPrefix="uc2" TagName="ComanyDepartment_1" Src="~/Components/ProvinceCity.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSave">
        <NetDon:FormPanel ID="panelCustomInfo" runat="server" CaptionAlign="NotSet" RepeatColumns="1">
            <Items>
                <NetDon:FormItem HeaderText="线路分类">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlRouteTypeId" DataSourceID="ddsRouteTypeId" AppendDataBoundItems="True"
                            runat="server" DataTextField="Name" DataValueField="Value">
                        </asp:DropDownList>
                        <NetDon:DictionaryDataSource ID="ddsRouteTypeId" runat="server" CategoryName="线路分类"
                            EmptyItemType="Select">
                        </NetDon:DictionaryDataSource>
                        <uc1:RequiredMark ID="RequiredMark11" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlRouteTypeId"
                            Display="None" ErrorMessage="请选择线路分类" SetFocusOnError="True">
                        </asp:RequiredFieldValidator>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="送货省份" ColumnSpan="2">
                    <ContentTemplate>
                        <uc2:ComanyDepartment_1 ID="ucProvinceCity" runat="server"></uc2:ComanyDepartment_1>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="货物在途天数">
                    <ContentTemplate>
                        <asp:TextBox ID="txtGoodsTravelDays" Text='<%#Eval("GoodsTravelDays") %>' Width="100px"
                            runat="server"></asp:TextBox>
                        <asp:DropDownList runat="server" ID="ddlGoodsTravelDaysUnit" Width="80px">
                            <asp:ListItem Text="天" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="小时" Value="1"></asp:ListItem>
                        </asp:DropDownList>
                        <uc1:RequiredMark ID="RequiredMark5" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtGoodsTravelDays"
                            Display="None" ErrorMessage="请输入货物在途天数" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <NetDon:NumericEditExtender ID="NumericEditExtender3" runat="server" MaxValue="100000"
                            TargetControlID="txtGoodsTravelDays" DataMode="Double">
                        </NetDon:NumericEditExtender>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="回单在途天数">
                    <ContentTemplate>
                        <asp:TextBox ID="txtReceiptOnWayDays" Text='<%#Eval("ReceiptOnWayDays") %>' Width="100px"
                            runat="server"></asp:TextBox>
                        <asp:DropDownList runat="server" ID="ddlReceiptOnWayDays" Width="80px">
                            <asp:ListItem Text="天" Value="0" Selected="True"></asp:ListItem>
                            <asp:ListItem Text="小时" Value="1"></asp:ListItem>
                        </asp:DropDownList>
                        <uc1:RequiredMark ID="RequiredMark1" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtReceiptOnWayDays"
                            Display="None" ErrorMessage="请输入回单在途天数" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <NetDon:NumericEditExtender ID="NumericEditExtender1" runat="server" MaxValue="100000"
                            TargetControlID="txtReceiptOnWayDays" DataMode="Double">
                        </NetDon:NumericEditExtender>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="成本单价">
                    <ContentTemplate>
                        <asp:TextBox ID="txtUnitCost" Text='<%#Convert.ToDecimal(Eval("UnitCost")).ToString("#,###.0000")%>'
                            runat="server" SkinID="Text80" Style="text-align: right"></asp:TextBox>
                        <uc1:RequiredMark ID="RequiredMark4" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUnitCost"
                            Display="None" ErrorMessage="请输入成本单价" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <NetDon:NumericEditExtender ID="NumericEditExtender5" runat="server" TargetControlID="txtUnitCost"
                            DataMode="Double">
                        </NetDon:NumericEditExtender>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="营收单价">
                    <ContentTemplate>
                        <asp:TextBox ID="txtRevenueUnitCost" Text='<%#Convert.ToDecimal(Eval("RevenueUnitCost")).ToString("#,###.00")%>'
                            runat="server" SkinID="Text80" Style="text-align: right"></asp:TextBox>
                        <uc1:RequiredMark ID="RequiredMark2" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtRevenueUnitCost"
                            Display="None" ErrorMessage="请输入营收单价" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <NetDon:NumericEditExtender ID="NumericEditExtender2" runat="server" TargetControlID="txtRevenueUnitCost"
                            DataMode="Double">
                        </NetDon:NumericEditExtender>
                    </ContentTemplate>
                </NetDon:FormItem>
            </Items>
        </NetDon:FormPanel>
        <div style="padding-top: 10px">
            <center>
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click"></asp:Button>
                <asp:Button ID="btnReturn" runat="server" Text="返回" CausesValidation="false" OnClick="btnClose_Click">
                </asp:Button>
                <NetDon:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true"
                    ShowSummary="false" />
            </center>
        </div>
    </asp:Panel>
</asp:Content>
